# 设置 CMake 最低版本要求
cmake_minimum_required(VERSION 3.10)

# 设置项目名称
project(MyProject)

# 设置 C++ 标准
set(CMAKE_CXX_STANDARD 11)

# 添加头文件目录
include_directories(include)

# 添加静态库
add_library(MyLibrary STATIC src/mylib.cpp)

# 添加可执行文件
add_executable(MyExecutable src/main.cpp)

# 链接库文件
target_link_libraries(MyExecutable MyLibrary)
